import request from '@/utils/request'

//待办事项
export const listMyWork = (search) => 
    request({
        url: '/op/req/get_my_req_list',//获取待我处理的申请列表
        method: 'get',
        params:{
            pageNo:search.currentPage,
            pageSize:search.limit
        }
    })
   
//获取我发起的申请列表 
export const listMyLift = (search) => 
    request({
        url: '/op/req/get_my_init_req_list',
        method: 'get',
        params:{
            pageNo:search.currentPage,
            pageSize:search.limit
        }
    })  

//我的消息
export const ListMessge = (search) => 
    request({
        url: '/op/wf_message/get_my_wf_message_list',//获取发给当前登陆用户的工作流推送消息列表
        method: 'get',
        params:{
        	pageNo:search.currentPage,
        	pageSize:search.limit
        }
    })

export const AlreadyRead = (code) => 
    request({
        url: '/op/wf_message/read_wf_message?codes='+[code],//已读 工作流推送消息
        method: 'get',
        
        
    })

//获取项目状态数据
export const getProjectStatus = () => 
    request({
        url: '/home/get_project_status',
        method: 'get',
})


//获取项目趋势数据
export const getProjectTrend = () => 
    request({
        url: '/home/get_project_req_trend',
        method: 'get',
})

//修改 密码
export const Modify_pass = (oldPassword ,newPassword ) => 
    request({
        url: '/sys/user/modify_password',
        method: 'get',
        params:{
                oldPassword,
                newPassword
        }
})